package dy.com.第6六章简易聊天室.libClink.Util;

import java.io.Closeable;
import java.io.IOException;

public class CloseUtils {
    public static void close(Closeable... closeables){
        if(closeables!=null){
            for(Closeable closeable:closeables){
                try {
                    closeable.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
